<template>
  <van-picker
    show-toolbar
    :columns="columns"
    @confirm="onConfirm"
    @cancel="$emit('close')"
  ></van-picker>
</template>

<script>
export default {
  name: 'NameEdit',
  props: {},
  data() {
    return {
      columns: ['男', '女'],
      showPicker: false
    }
  },
  methods: {
    onConfirm(value) {
      this.$emit('genderValue', value === '男' ? 0 : 1)
      this.$emit('close')
    }
  }
}
</script>

<style scope lang="less">

</style>
